package com.hk.web.manage.sys.authority.controller;

import com.hk.dao.manage.sys.authority.model.SysPermission;
import com.hk.manage.sys.service.SysPermissionService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (SysPermission)表控制层
 *
 * @author cyq
 * @since 2020-04-20 13:38:55
 */
@RestController
@RequestMapping("/sysPermission")
public class SysPermissionController {
    /**
     * 服务对象
     */
    @Resource
    private SysPermissionService sysPermissionService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("/selectOne")
    public SysPermission selectOne(Long id) {
        return sysPermissionService.queryById(id);
    }

}